﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Chung/QLSV.Master" AutoEventWireup="true" CodeBehind="ThemSVExcel.aspx.cs" Inherits="proRFID_DiemDanh.SinhVien.ThemSVExcel" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentMain" runat="server">
    <table align="center" cellpadding="0" cellspacing="0" >
        <tr>
            <td>
                <asp:FileUpload ID="FU_chonfile" runat="server" CssClass="border" style="vertical-align:middle"/>
                &nbsp;<asp:ImageButton ID="cmdThem" runat="server" 
                    ImageUrl="~/Chung/img/add.png" onclick="cmdThem_Click" style="vertical-align:middle"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="FU_chonfile" 
                ErrorMessage="Vui lòng chọn file trước!" CssClass="Thongbao"> </asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td >Danh sách sinh viên trong file excel</td>
        </tr>
        <tr>
            <td >
                <table class="border">
                    <tr>
                        <th width="100px">
                            Mã sinh viên
                        </th>
                        <th width="250px">
                            Họ sinh viên
                        </th>
                        <th  width="150px">
                            Tên sinh viên
                        </th>
                        <th  width="100px">
                            Mã thẻ
                        </th>                       
                    </tr>
                    <asp:Repeater ID="rpt_danhsach" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%#Eval("MASV") %>
                                </td>
                                <td>
                                    <%#Eval("HOSV") %>
                                </td>
                                <td>
                                    <%#Eval("TENSV")%>
                                </td>
                                <td>
                                    <%#Eval("MATHE") %>
                                </td>
                                
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </td>
        </tr>
        <tr>
            <td >
                <asp:Label ID="lbl_thongbao" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td >
                Danh Sách Bị Trùng Mã</td>
        </tr>
        <tr>
            <td >
                <table class="border">
                    <tr>
                        <th  width="100px">
                            Mã sinh viên
                        </th>
                        <th  width="250px">
                            Họ sinh viên
                        </th>
                        <th  width="150px">
                            Tên sinh viên
                        </th>
                        <th  width="100px">
                            Mã thẻ
                        </th>                       
                    </tr>
                    <asp:Repeater ID="rpt_danhsachtrung" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%#Eval("MASVT") %>
                                </td>
                                <td>
                                    <%#Eval("HOSVT") %>
                                </td>
                                <td>
                                    <%#Eval("TENSVT")%>
                                </td>
                                <td>
                                    <%#Eval("MATHET") %>
                                </td>
                                
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
